import request from '@/utils/request'

// 查询幼儿列表
export function listChildren(query) {
  return request({
    url: '/children/children/list',
    method: 'get',
    params: query
  })
}

// 查询幼儿详细
export function getChildren(children) {
  return request({
    url: '/children/children/' + children,
    method: 'get'
  })
}

// 新增幼儿
export function addChildren(data) {
  return request({
    url: '/children/children',
    method: 'post',
    data: data
  })
}

// 修改幼儿
export function updateChildren(data) {
  return request({
    url: '/children/children',
    method: 'put',
    data: data
  })
}

// 删除幼儿
export function delChildren(children) {
  return request({
    url: '/children/children/' + children,
    method: 'delete'
  })
}
